// plugins/wangeditor.js  
import { defineNuxtPlugin } from "#app";
import Editor from 'wangeditor'

export default ({ app }, inject) => {
  if (process.client) {
    const editor = new Editor('#editor')
    editor.create()
  }
}
// export default defineNuxtPlugin((nuxtApp) => {
//   if (process.client) {
//     // import("bootstrap/dist/js/bootstrap.bundle.min.js")
//   const editor = new Editor('#editor')
//   editor.create()
// }
//   }
// );